import { defineStore } from 'pinia'
import type { Equipment } from '@/types/EquipmentType'

interface State {
  equipment: Equipment
}

export const useSEquipmentstore = defineStore('equipment', {
  state: (): State => {
    return {
      equipment: {
        id: -1,
        equipNo: '',
        name: '',
        level: '',
        scope: '',
        addYear: 0,
        traceMethod: '',
        validDate: '',
        source: ''
      }
    }
  },
  persist: true
})
